package com.github.atom.sso.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ganshenghe
 * @date 2018/1/27
 * demo controller
 */
@RestController
public class DemoController {
    @GetMapping("/users")
    public Authentication users(Authentication authentication) {
        return authentication;
    }

    @GetMapping("/xx")
    public String  xx(Authentication authentication) {
        return "xxx";
    }

    @GetMapping("/test")
    public String  test() {
        return "xxx";
    }
}
